package fun.chutianshu.eescore_06_druid_mybatis_mybatisplus.controller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class LogtestController {

    //private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LogtestController.class);
    @RequestMapping("/logtest")
    @ResponseStatus(HttpStatus.OK)
    public String logtest(){
        log.trace("trace");
        log.debug("debug");
        log.warn("warn");
        log.info("info");
        log.error("error");
        return "Hello Spring Boot";
    }
}
